<template>
  <div>
    <a-card :bordered="false">
      <f-table ref="table" rowKey="reportOutwardId" :columns="columns"  :multiple="false" :scroll="{x:newColumns.length*150,y:newColumns.length*35}" :operator="operator" :params="queryParam" :api="api.report4">
      </f-table>
    </a-card>
  </div>
</template>
<script>
  import api from './js/api'
  export default {
    name: 'reportOut4Detail',
    data() {
      let me = this
      return {
        api:  Object.assign(api, this.api),
        //列表初始化查询参数
        queryParam: {},
        // 表头
        columns: [
          {
            title: '序号',
            width: '60',
            align: 'center',
            customRender: (text, record, index) => index + 1
          },
          {
            title: '备用',
            width: '60',
            align: 'center',
            dataIndex: 'otherField1'
          },
          {
            title: '清单序号',
            width: '60',
            align: 'center',
            dataIndex: 'item'
          },
          {
            title: '项目名称',
            align: 'center',
            dataIndex: 'projectName'
          },
          {
            title: '项目特征',
            align: 'center',
            dataIndex: 'projectDesc'
          },
          {
            title: '计量单位',
            align: 'center',
            dataIndex: 'measureUnit'
          },
          {
            title: '合同数量',
            align: 'center',
            dataIndex: 'contractQuantity'
          },
          {
            title: '综合单价',
            align: 'center',
            dataIndex: 'unitPrice'
          },
          {
            title: '合同总价',
            align: 'center',
            dataIndex: 'totalPrice'
          },
          {
            title: '本期申报量',
            align: 'center',
            width: 150,
            dataIndex: '',
            children: [
              {
                title: '百分比',
                align: 'center',
                width: 150,
                dataIndex: 'beforefinishPercent'
              },
              {
                title: '数量',
                align: 'center',
                width: 150,
                dataIndex: 'beforefinishCount'
              },
              {
                title: '价格',
                align: 'center',
                width: 150,
                dataIndex: 'beforefinishPrice'
              }
            ]
          },
          {
            title: '本期审核量',
            align: 'center',
            width: 150,
            dataIndex: '',
            children: [
              {
                title: '百分比',
                align: 'center',
                width: 150,
                dataIndex: 'currentAuitPercent'
              },
              {
                title: '数量',
                align: 'center',
                width: 150,
                dataIndex: 'currentAuditCount'
              },
              {
                title: '价格',
                align: 'center',
                width: 150,
                dataIndex: 'currentAuitPrice'
              }
            ]
          },
          {
            title: '前期累计已完工',
            align: 'center',
            width: 150,
            dataIndex: '',
            children: [
              {
                title: '百分比',
                align: 'center',
                width: 150,
                dataIndex: 'declardPercent'
              },
              {
                title: '数量',
                align: 'center',
                width: 150,
                dataIndex: 'declaredCount'
              },
              {
                title: '价格',
                align: 'center',
                width: 150,
                dataIndex: 'declaredPrice'
              }
            ]
          },
          {
            title: '截止目前累计完工进度',
            align: 'center',
            width: 150,
            dataIndex: '',
            children: [
              {
                title: '百分比',
                align: 'center',
                width: 150,
                dataIndex: 'newfinishPersent'
              },
              {
                title: '数量',
                align: 'center',
                width: 150,
                dataIndex: 'newfinishCount'
              },
              {
                title: '价格',
                align: 'center',
                width: 150,
                dataIndex: 'nefinishPrice'
              }
            ]
          },
          {
            title: '备注',
            align: 'center',
            dataIndex: 'remark'
          },
          {
            title: '年月',
            align: 'center',
            dataIndex: 'reportMonth'
          },
          {
            title: '批次',
            align: 'center',
            dataIndex: 'batchNumber'
          },
          {
            title: '创建时间',
            align: 'center',
            dataIndex: 'createTime'
          },
          {
            title: '操作',
            align: 'center',
            scopedSlots: { customRender: 'action' }
          }
        ],
        operator: operator
      }
    },
    created() {
      this.queryParam.projectCode = this.$route.query.projectCode
      this.queryParam.reportMonth = this.$route.query.reportMonth
      this.queryParam.batchNumber = this.$route.query.batchNumber
    },
    methods: {
    }
  }
</script>
